package com.woniuxy.enjoylife.mapper;

import com.woniuxy.enjoylife.entity.Goods_times;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-23
 */
public interface Goods_timesMapper extends BaseMapper<Goods_times> {

    int selectUidByGid(int gid);

    int selectGidByUid(int uid);

    int selectTimes(int gid);

    boolean selectIsViewed(@Param("gid") int gid, @Param("uid") int uid);

}
